package com.kingint.web.listener.rushHouse;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.util.StringUtils;

/**
 * 维修单创建监听器
 */
public class RushCreateListener implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        Object rejectStatus = delegateTask.getVariable("rejectStatus");
        if(StringUtils.isEmpty(rejectStatus)){
            //设置参数
            delegateTask.setVariable("rejectStatus",-1);
        }
        Object haveCheckStatus = delegateTask.getVariable("haveCheckStatus");
        if(StringUtils.isEmpty(haveCheckStatus)){
            delegateTask.setVariable("haveCheckStatus",-1);
        }
    }
}
